//
//  CommonEngine.h
//  quanminzhekou
//
//  Created by zxl on 15/1/19.
//  Copyright (c) 2015年 zhongqinglongtu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MKNetworkKit.h"
#import "EngineModel.h"

typedef void(^CompletionBlock)(NSDictionary* result);
typedef void(^ErrorBlock)(NSError* errMsg);

@interface CommonEngine : NSObject

+ (instancetype)sharedInstance;

- (MKNetworkOperation*)getOperationWithURLPath:(NSString*)path shouldCache:(BOOL)isCache completionHandler:(CompletionBlock)completionBlock errorHandler:(ErrorBlock)errorBlock;

- (NSString*)urlPathForDataWithDictionary:(NSDictionary*)dic;
- (NSString*)urlPathForFocus;
- (NSString*)urlPathForVersion;
- (NSString*)urlPathForSearchWithDictionary:(NSDictionary*)dic;
- (NSString*)urlPathForUpnum;

@end
